package cn.wd.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("t_bullet_msg")
public class BulletMsg {
    /** 主键id*/
    @TableId
    private Long id;

    /**
     * 弹幕内容
     */
    private String content;

    /**
     * 发布人id
     */
    private Long authorId;

    /**
     * 视频id
     */
    private Long videoId;

    /**
     * 视频时间
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime videoTime;

    /**
     * 点赞数
     */
    private Integer likes;

    /**
     * 弹幕颜色
     */
    private String color;

    /**
     * 字体大小
     */
    private String fontSize;

    /**
     * 状态(0=正常, 1=禁用)
     */
    private Boolean status;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime releaseTime;
}